<?php
/**
 * Created by swagger_zxd.
 * User: zxd
 * Date: 2017/11/24
 * Time: 10:39
 */

namespace App\Models\Test;


use Illuminate\Database\Eloquent\Model;

class Pay extends Model{

    protected $table='pay';


    /**
     * 该笔付款所属那个用户
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function belongsToUser()
    {
        return $this->belongsTo(User::class,'user_id','id');
    }

}